#include <QCoreApplication>
#include <iostream>
using namespace std;


int main()
{
    int a, ed, des, sot;
        cout <<"Vvedite a: \n";
        cin >>a;
            ed=a%100%10;
            des=a/10%10;
            sot=a/100;
                cout <<"ed=" << ed <<"\ndes=" << des <<"\nsot=" << sot <<endl;

                if ((des>ed && des<sot)||(des<ed && des>sot))
                    cout <<"TRUE";
                else
                    cout <<"FALSE";


    return 0;
}
